home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14576 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: raffles.technet.sg!usenet
  2. From: Desmond Poh <pserv@po.pacific.net.sg>
  3. Newsgroups: comp.lang.c++,comp.lang.c
  4. Subject: Beginner, Please Help.
  5. Date: Mon, 01 Apr 1996 13:56:30 -0800
  6. Organization: P-Serv Pte Ltd
  7. Message-ID: <3160510E.7DBB@po.pacific.net.sg>
  8. NNTP-Posting-Host: max81ppp32.pacific.net.sg
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win16; I)
  13.  
  14. Hi everyone
  15.  
  16. I'm would like to know how to compile a DLL for other languages to use.
  17.  
  18. The function I would like to have in the DLL is ...
  19.  
  20.     #include <math.h>
  21.  
  22.     float far pascal _export arcsin(float finput)
  23.     {
  24.         return asin(finput)
  25.     }
  26.  
  27. I've put this program (MYFIRST.CPP) in a project file to be compiled as a 
  28. DLL.
  29.  
  30. By the way, is my syntax correct? 
  31.  
  32. Could anyone please assist me in creating a DLL for the above function.  
  33. Please guide me from the beginning to arriving at the DLL.  I'm currently 
  34. trying out on Borland C++ V4.5.  
  35.  
  36. Solutions could be E-Mailed to me at: mailto:pserv@pacific.net.sg 
  37.  
  38. Thanks in advance ... Desmond
  39.